//
//  RSWRESTService+Workflow.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 2017/8/25.
//  Copyright © 2017年 com.xtion.crm. All rights reserved.
//

#import "RSWRESTService.h"

@interface RSWRESTService (Workflow)

-(XLGResult*)getALlWorkflowDate:(NSString*)date
                          token:(NSString*)token
                      pageIndex:(NSInteger)pageIndex
                       pageSize:(NSInteger)pageSize
                           code:(NSString*)code;

-(XLGResult*)getToDoWorkflowDate:(NSString*)date
                           token:(NSString*)token
                       pageIndex:(NSInteger)pageIndex
                        pageSize:(NSInteger)pageSize
                            code:(NSString*)code;

-(XLGResult*)getWorkflowApply:(NSString*)processcode
                        token:(NSString*)token
                   customform:(NSString*)customform
                      version:(NSString*)version;

-(XLGResult*)getStepRoleUserTree:(NSString*)processcode
                             token:(NSString*)token
                           version:(NSString*)version
                               dic:(NSDictionary*)dic
                                url:(NSString*)url;

-(XLGResult*)startWorkflowAppInstance:(NSString*)processcode
                                token:(NSString*)token
                              version:(NSString*)version
                                  dic:(NSDictionary*)dic;

-(XLGResult*)nextWorkflowAppInstance:(NSString*)processcode
                               token:(NSString*)token
                             version:(NSString*)version
                                 dic:(NSDictionary*)dic;

-(XLGResult*)getWorkflowApprove:(NSString*)processcode
                          token:(NSString*)token
                     customform:(NSString*)customform
                        version:(NSString*)version
                     instanceid:(NSString*)instanceid;

-(XLGResult*)withDrawWorkflowAppInstance:(NSString*)processcode
                                   token:(NSString*)token
                                 version:(NSString*)version
                                 comment:(NSString*)comment
                                 modelid:(NSString*)modelid;

-(XLGResult*)sendBackWorkflowAppInstance:(NSString*)processcode
                                   token:(NSString*)token
                                 version:(NSString*)version
                                 comment:(NSString*)comment
                                 modelid:(NSString*)modelid;

-(XLGResult*)discardWorkflowAppInstance:(NSString*)processcode
                                  token:(NSString*)token
                                version:(NSString*)version
                                comment:(NSString*)comment
                                modelid:(NSString*)modelid;

-(XLGResult*)reverseWorkflowAppInstance:(NSString*)processcode
                                  token:(NSString*)token
                                version:(NSString*)version
                                comment:(NSString*)comment
                                modelid:(NSString*)modelid;

-(XLGResult*)getWorkflowHistoryModelId:(NSString*)modelId token:(NSString*)token;

@end
